import { configureStore } from '@reduxjs/toolkit';
import userReducer from './reducers/userReducer';
import appReducer from './reducers/appReducer';

const store = configureStore({
  reducer: {
    user: userReducer,
    app: appReducer,
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: ['persist/PERSIST', 'persist/REHYDRATE'],
      },
    }),
});

export default store;
